package com.shiguiwu.springmybatis.spring.createbean;

import lombok.Data;
import lombok.ToString;

/**
 * @description: ceshi
 * @author: stone
 * @date: Created by 2021/3/8 17:13
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.createbean
 */

@Data
@ToString
public class Pig {

    private String name;

    private Integer age;

    public Pig(String name, Integer age) {
        System.out.println("有参数构造。。。。。");
        this.name = name;
        this.age = age;
    }

    public Pig() {
        System.out.println("默认构造器。。。。。");
    }
}
